package com.indexingsystem.boss.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * idx_products_theme_words
 * @author 
 */
public class IdxProductsThemeWords implements Serializable {
    /**
     * 主键Id
     */
    private String id;

    /**
     * 任务id
     */
    private Integer taskId;
    /**
     * 主题词表集
     */
    private Integer  themeGroupId;
    /**
     * 主题词表id
     */
    private Integer themeTableId;

    /**
     * 产品id
     */
    private String productId;

    /**
     * 主题词id
     */
    private Integer themeWordsId;

    /**
     * 主题词名
     */
    private String themeWordsName;

    /**
     * 审核状态,0=未审核，-1=未通过200=通过
     */
    private Integer checkStatus;

    /**
     * 创建时间
     */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建人
     */
    private String createBy;
    
    /**
     * 标引状态 0=手动标引，1=自动标引
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getThemeTableId() {
        return themeTableId;
    }

    public void setThemeTableId(Integer themeTableId) {
        this.themeTableId = themeTableId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getThemeWordsId() {
        return themeWordsId;
    }

    public void setThemeWordsId(Integer themeWordsId) {
        this.themeWordsId = themeWordsId;
    }

    public String getThemeWordsName() {
        return themeWordsName;
    }

    public void setThemeWordsName(String themeWordsName) {
        this.themeWordsName = themeWordsName;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	
	public Integer getThemeGroupId() {
		return themeGroupId;
	}

	public void setThemeGroupId(Integer themeGroupId) {
		this.themeGroupId = themeGroupId;
	}


	public IdxProductsThemeWords() {
		super();
	}

	public IdxProductsThemeWords(String id, Integer taskId, Integer themeGroupId, Integer themeTableId,
			String productId, Integer themeWordsId, String themeWordsName, Integer checkStatus, Date createTime,
			String createBy, Integer status) {
		super();
		this.id = id;
		this.taskId = taskId;
		this.themeGroupId = themeGroupId;
		this.themeTableId = themeTableId;
		this.productId = productId;
		this.themeWordsId = themeWordsId;
		this.themeWordsName = themeWordsName;
		this.checkStatus = checkStatus;
		this.createTime = createTime;
		this.createBy = createBy;
		this.status = status;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((checkStatus == null) ? 0 : checkStatus.hashCode());
		result = prime * result + ((createBy == null) ? 0 : createBy.hashCode());
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((productId == null) ? 0 : productId.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((taskId == null) ? 0 : taskId.hashCode());
		result = prime * result + ((themeGroupId == null) ? 0 : themeGroupId.hashCode());
		result = prime * result + ((themeTableId == null) ? 0 : themeTableId.hashCode());
		result = prime * result + ((themeWordsId == null) ? 0 : themeWordsId.hashCode());
		result = prime * result + ((themeWordsName == null) ? 0 : themeWordsName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IdxProductsThemeWords other = (IdxProductsThemeWords) obj;
		if (checkStatus == null) {
			if (other.checkStatus != null)
				return false;
		} else if (!checkStatus.equals(other.checkStatus))
			return false;
		if (createBy == null) {
			if (other.createBy != null)
				return false;
		} else if (!createBy.equals(other.createBy))
			return false;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (productId == null) {
			if (other.productId != null)
				return false;
		} else if (!productId.equals(other.productId))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (taskId == null) {
			if (other.taskId != null)
				return false;
		} else if (!taskId.equals(other.taskId))
			return false;
		if (themeGroupId == null) {
			if (other.themeGroupId != null)
				return false;
		} else if (!themeGroupId.equals(other.themeGroupId))
			return false;
		if (themeTableId == null) {
			if (other.themeTableId != null)
				return false;
		} else if (!themeTableId.equals(other.themeTableId))
			return false;
		if (themeWordsId == null) {
			if (other.themeWordsId != null)
				return false;
		} else if (!themeWordsId.equals(other.themeWordsId))
			return false;
		if (themeWordsName == null) {
			if (other.themeWordsName != null)
				return false;
		} else if (!themeWordsName.equals(other.themeWordsName))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "IdxProductsThemeWords [id=" + id + ", taskId=" + taskId + ", themeGroupId=" + themeGroupId
				+ ", themeTableId=" + themeTableId + ", productId=" + productId + ", themeWordsId=" + themeWordsId
				+ ", themeWordsName=" + themeWordsName + ", checkStatus=" + checkStatus + ", createTime=" + createTime
				+ ", createBy=" + createBy + ", status=" + status + "]";
	}

	

  
}